package org.example.neo4j.controller;

import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;
import org.springframework.data.neo4j.core.schema.Relationship;

import java.util.List;

@Node
public class MuEntity {

    @Id
    private String name;
    private String niaoming;

    @Relationship(type = "包含的鸟类")
    private List<BirdEntity> birdEntityList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNiaoming() {
        return niaoming;
    }

    public void setNiaoming(String niaoming) {
        this.niaoming = niaoming;
    }

    public List<BirdEntity> getBirdEntityList() {
        return birdEntityList;
    }

    public void setBirdEntityList(List<BirdEntity> birdEntityList) {
        this.birdEntityList = birdEntityList;
    }
}
